package com.equipment.management.util;

import lombok.Data;


@Data
public class Result<T>   {

    private int code;
    private String message;
    private T jsondata;


    public Result() {
        this.code = code;
        this.message = message;
    }

    public Result(T t) {
        this.code = code;
        this.message = message;
        this.jsondata=t;
    }
    //200
    public Result(T t,String zuce) {
        this.code = code;
        this.message = message;
        this.jsondata=t;
    }
    //1000
    public Result(T t,int a) {
        this.code = code;
        this.message = message;
        this.jsondata=t;
    }

    public Result(int code, String msg) {
        this.code = code;
        this.message = msg;
    }

    public Result(int code, String msg, T t) {
        this.code = code;
        this.message = msg;
        this.jsondata = t;
    }
}